<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="../static/css/style.css">
</head>
<body>
<div class="form-div" align="center">
    <font face="楷体" size="10">
        <b style="color: #66b1ff">登录页面，欢迎登录！</b>
    </font>
    <form id="reg-form" action="/document/users/login" method="post">
        <table>
            <tr>
                <td>
                    <p style="color: red" th:text="${msg1}" th:if="${not #strings.isEmpty(msg1)}"></p>
                    <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                </td>
            </tr>

            <tr>
                <td>用户账号:</td>
                <td class="inputs">
                    <input name="userNumber" type="text" id="userNumber">
                </td>
            </tr>

            <tr>
                <td>密码:</td>
                <td class="inputs">
                    <input name="password" type="password" id="password">
                </td>
            </tr>

        </table>
        <br>
        <div class="buttons" align="center">
            <input value="登录" type="submit" id="reg_btn">
            <!--<button onclick="on()" type="button">返回首页</button>-->
        </div>
        <br class="clear">
    </form>
    <form action="/document/users/in" method="post">
        <input type="submit" value="返回首页">
    </form>
</div>
</body>

<script src="../static/js/vue.js"></script>
<script src="../static/plugins/elementui/index.js"></script>
<script type="text/javascript" src="../static/js/jquery.min.js"></script>
<script src="../static/js/axios-0.18.0.js"></script>

<script>
    function on() {
        axios.post("/document/users/in").then((res)=>{
        });
    }
    /*function on() {
        var state = document.getElementById("login_err");
        var data = [[${flag}]];
        if(data){
            alert("登录成功！");
            state.style.display = "none";
        } else {
            alert("登录失败！");
            state.style.display = "";
        }
    }*/
</script>
</html>